package com.medical.data.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class OpenFollowUpVo {

    @NotBlank(message = "患者id不可为空")
    @ApiModelProperty(value = "id")
    private String patientId;

    @NotNull(message = "是否随访不可为空")
/*    @Length(min = 1,max = 1,message = "是否随访只可以是0或者1")*/
    @ApiModelProperty(value = "是否随访:0表示不随访(默认)1表示随访")
    private Boolean isFollowUp;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "随访开始时间")
    private Date followUpTime;
}